<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
   	function toBatchImport(){
	   var id = "${project.id}";
	   var merchantId = "${project.merchantId}";
        var tabKey = "batchImp_" + id;
        var url = "/estate/import/index?id=${project.id}&menu=${menu}";
        if(merchantId== "1" && merchantId == "3"){
            url = "/estate/import/indexLC?id=${project.id}&menu=${menu}";
        }
       	parent.openMenu("0",tabKey,"","批量导入",url);
   	}
</script>
<div>
   
   <div class="action-list margin-bottom-10">
   			<c:forEach var="btn" items="${permitBtn}">
   				<c:choose>
   					<c:when test="${btn.permission=='estate:projectRoom:saveBatchData'}">
   					  <a href="${pageContext.request.contextPath}/estate/projectRoom/toBatchUpdate?projectId=${project.id}&premisesId=${premises.id}" class="btn-action-primary">批量修改</a>
   					</c:when>
   					<c:when test="${btn.permission=='estate:import:importExcel'}">
   					
   					  <a href="#" onclick="toBatchImport()" class="btn-action-primary">批量导入</a>
   					</c:when>
   					<c:when test="${btn.permission=='estate:projectPremises:edit'}">
   					    <a href="${pageContext.request.contextPath}/estate/projectPremises/save_edit_lc?id=${premises.id}" class="btn-action-primary">编辑</a>
   					</c:when>
   				
   					<%-- <c:when test="${btn.permission=='estate:projectPremises:delete'}">
   					     <a href="#" class="btn-action-primary">删除</a>
   					</c:when> --%>
   				</c:choose>
            </c:forEach>
            	 <a href="javascript:void(0)" onclick="createIndustModel(null,${project.id},${premises.id},null,false,1)" class="btn-action-primary">新增业态</a>
        </div>
<div class="content-box  border-all">
            <h3 class="detail-header border-bottom">分期基本信息</h3>
            <table class="detail-content detail-normal-content">
                <tr>
                    <td>
                        <div class="td-title fl">项目名称：</div>
                        <div class="td-content fl">${project.projectName}</div>
                    </td>
                    <td>
                        <div class="td-title fl">组团名称：</div>
                        <div class="td-content fl">${premises.groupName}</div>
                    </td>
                    
                </tr>
                
                <tr>
                    <td>
                        <div class="td-title fl">组团编号：</div>
                        <div class="td-content fl">${premises.premisesCode}</div>
                    </td>
                    <td>
                	<div class="td-title fl">产品类型：</div>
                	<div class="td-content fl">
                	<c:forEach var="rowEnum" items="${projectTypes}">
							<c:if test="${rowEnum.no==premises.projectType}">${rowEnum.des}</c:if>
                         </c:forEach>
                	</div>
                	</td>
                </tr>
                 <tr>
                
                	<td>
                	<div class="td-title fl">容积率：</div>
                	<div class="td-content fl">${premises.plotRatio}</div>
                	</td>
                	<td>
                	<div class="td-title fl">绿化率：</div>
                	<div class="td-content fl">${premises.greeningRate}</div>
                	</td>
                </tr>
                 <tr>
                	<td>
                	<div class="td-title fl">占地面积：</div>
                	<div class="td-content fl">${premises.floorSpace}</div>
                	</td>
                	<td>
                	<div class="td-title fl">装修标准：</div>
                	<div class="td-content fl">
                		<c:choose>
							<c:when test="${premises.renovationType eq 0}">精装</c:when>
							<c:when test="${premises.renovationType eq 1}">毛坯</c:when>
							<c:when test="${premises.renovationType eq 2}">其他${premises.renovationDesc}</c:when>
						</c:choose>
                	</div>
                	</td>
                </tr>
                <tr>
                	<td>
                	<div class="td-title fl">交付情况：</div>
                	<div class="td-content fl">
                	<c:forEach var="rowEnum"   items="${deliveryStatusEnums}">
							<c:if test="${rowEnum.no==premises.deliveryFlag}">${rowEnum.des}</c:if>
                     	</c:forEach>
                	</div>
                	</td>
                	<td>
                	<div class="td-title fl">建造进度：</div>
                	<div class="td-content fl">${premises.buildingSchedule}</div>
                	</td>
                </tr>
                
                  <tr>
                	<td>
                	<div class="td-title fl">销售情况：</div>
                	<div class="td-content fl">
                		<c:forEach var="rowEnum"   items="${salesStatusEnums}">
							<c:if test="${rowEnum.no==premises.salesStatus}">${rowEnum.des}</c:if>
                       	</c:forEach>
                	</div>
                	</td>
                
                </tr>
                
                <tr>
                	<td>
                	<div class="td-title fl">项目开始时间：</div>
                	<div class="td-content fl">
                	<fmt:formatDate value="${premisesPmo.startDate}" pattern="yyyy-MM-dd"/>
                	
                	</div>
                	</td>
                	<td>
                	<div class="td-title fl">项目截止时间：</div>
                	<div class="td-content fl">
                	<fmt:formatDate value="${premisesPmo.endDate}" pattern="yyyy-MM-dd"/>
                	</div>
                	</td>
                </tr>
                
                
                 <tr>
                	<td>
                	<div class="td-title fl">计划开工时间：</div>
                	<div class="td-content fl">
                	<fmt:formatDate value="${premisesPmo.planneStartOperatDate}" pattern="yyyy-MM-dd"/>
                	
                	</div>
                	</td>
                	<td>
                	<div class="td-title fl">实际开工时间：</div>
                	<div class="td-content fl">
                	<fmt:formatDate value="${premisesPmo.actualStartOperatDate}" pattern="yyyy-MM-dd"/>
                	</div>
                	</td>
                </tr>
                
                
                <tr>
                	<td>
                	<div class="td-title fl">计划交付时间：</div>
                	<div class="td-content fl">
                	<fmt:formatDate value="${premisesPmo.planneDueDate}" pattern="yyyy-MM-dd"/>
                	
                	</div>
                	</td>
                	<td>
                	<div class="td-title fl">实际交付时间：</div>
                	<div class="td-content fl">
                	<fmt:formatDate value="${premisesPmo.actualDueDate}" pattern="yyyy-MM-dd"/>
                	</div>
                	</td>
                </tr>
                
                
                <tr>
                	<td>
                	<div class="td-title fl">计划首开时间：</div>
                	<div class="td-content fl">
                	<fmt:formatDate value="${premisesPmo.planneFirstDayStartOperat}" pattern="yyyy-MM-dd"/>
                	
                	</div>
                	</td>
                	<td>
                	<div class="td-title fl">实际首开时间：</div>
                	<div class="td-content fl">
                	<fmt:formatDate value="${premisesPmo.actualFirstDayStartOperat}" pattern="yyyy-MM-dd"/>
                	</div>
                	</td>
                </tr>
                
                <tr>
                	<td>
                	<div class="td-title fl">计划竣工时间：</div>
                	<div class="td-content fl">
                	<fmt:formatDate value="${premisesPmo.planneCompleDate}" pattern="yyyy-MM-dd"/>
                	
                	</div>
                	</td>
                	<td>
                	<div class="td-title fl">实际竣工时间：</div>
                	<div class="td-content fl">
                	<fmt:formatDate value="${premisesPmo.actualCompleDate}" pattern="yyyy-MM-dd"/>
                	</div>
                	</td>
                </tr>
                
                
                
            </table>
            <h3 class="detail-header border-top border-bottom">分期静态数据</h3>
            <table class="detail-content detail-normail-content">
                <tr>
                    <td>
                        <div class="td-title fl">分期名：</div>
                        <div class="td-content fl">${premisesPmo.staginName}</div>
                    </td>
                    <td>
                        <div class="td-title fl">车位数：</div>
                        <div class="td-content fl">${premises.carportTotal}</div>
                    </td>
                </tr>
                
                 <tr>
                    <td>
                        <div class="td-title fl">组团案名：</div>
                        <div class="td-content fl">${premisesPmo.projectCaseName}</div>
                    </td>
                     <td>
                        <div class="td-title fl">建设类型：</div>
                        <div class="td-content fl">${premisesPmo.constrType}</div>
                    </td>
                </tr>
                
                 <tr>
                 <td>
                        <div class="td-title fl">开发周期：</div>
                        <div class="td-content fl">${premisesPmo.devlopCycle}</div>
                    </td>
                	<td>
                	<div class="td-title fl">物业类型：</div>
                	<div class="td-content fl">${premisesPmo.properType}</div>
                	</td>
                </tr>
                
                <tr>
                 	<td>
                        <div class="td-title fl">总户数：</div>
                        <div class="td-content fl">${premises.householdsTotal}</div>
                    </td>
                    <td>
                        <div class="td-title fl">车位配比：</div>
                        <div class="td-content fl">${premises.carportMatching}</div>
                    </td>
                    
                    
                </tr>
                
                <tr>
                 	<td>
                        <div class="td-title fl">地下可售面积：</div>
                        <div class="td-content fl">${projectPremisesInfo.undergroundArea}</div>
                    </td>
                    <td>
                        <div class="td-title fl">地上可售面积：</div>
                        <div class="td-content fl">${projectPremisesInfo.groundArea}</div>
                    </td>
                </tr>
                
                <tr>
                 	<td>
                        <div class="td-title fl">自持面积：</div>
                        <div class="td-content fl">${projectPremisesInfo.ownArea}</div>
                    </td>
                    <td>
                        <div class="td-title fl">栋数：</div>
                        <div class="td-content fl">${premisesPmo.numberOfBuildi}</div>
                    </td>
                </tr>
                
                
                 
                <tr>
                 	<td>
                        <div class="td-title fl">地上机动车位：</div>
                        <div class="td-content fl">${projectPremisesInfo.groundMotor}</div>
                    </td>
                    <td>
                        <div class="td-title fl">地下机动车位：</div>
                        <div class="td-content fl">${projectPremisesInfo.undergroundMotor}</div>
                    </td>
                </tr>
                
                 <tr>
                 	<td>
                        <div class="td-title fl">地上非机动车位：</div>
                        <div class="td-content fl">${projectPremisesInfo.groundNonMotor}</div>
                    </td>
                    <td>
                        <div class="td-title fl">地下非机动车位：</div>
                        <div class="td-content fl">${projectPremisesInfo.undergroundNonMotor}</div>
                    </td>
                </tr>
                
                
                  <tr>
                 	<td>
                        <div class="td-title fl">可售面积：</div>
                        <div class="td-content fl">${projectPremisesInfo.housingArea}</div>
                    </td>
                    <td>
                        <div class="td-title fl">可售套数：</div>
                        <div class="td-content fl">${premisesPmo.salableNumber}</div>
                    </td>
                </tr>
                
                
                
                  <tr>
                 	<td>
                        <div class="td-title fl">目标销售均价（${premisesPmo.targetAveragPriceVersion}）：</div>
                        <div class="td-content fl">${premisesPmo.targetAveragPrice}</div>
                    </td>
                    <td>
                        <div class="td-title fl">生效日期：</div>
                        <div class="td-content fl">
                        <fmt:formatDate value="${premisesPmo.targetAveragPriceTime}" pattern="yyyy-MM-dd"/>
                        </div>
                    </td>
                </tr>
                   <tr>
                 	<td>
                        <div class="td-title fl">车位目标销售均价（${premisesPmo.targetPriceOfParkinVersion}）：</div>
                        <div class="td-content fl">${premisesPmo.targetPriceOfParkinSpace}</div>
                    </td>
                    <td>
                        <div class="td-title fl">生效日期：</div>
                        <div class="td-content fl">
                        <fmt:formatDate value="${premisesPmo.targetPriceOfParkinSpaceTime}" pattern="yyyy-MM-dd"/>
                        </div>
                    </td>
                </tr>
                
                <tr>
                 	<td>
                        <div class="td-title fl">目标货值（${premisesPmo.targetValueVersion}）：</div>
                        <div class="td-content fl">${premisesPmo.targetValue}</div>
                    </td>
                    <td>
                        <div class="td-title fl">生效日期：</div>
                        <div class="td-content fl">
                        <fmt:formatDate value="${premisesPmo.targetValueTime}" pattern="yyyy-MM-dd"/>
                        </div>
                    </td>
                </tr>
               
               
            </table>
              <h3 class="detail-header border-top border-bottom">分期图片</h3>
            	<table class="detail-content detail-normail-content">
            		<tr>
                    <td class="td-left td-img">
                        <div class="td-title fl">项目logo：</div>
                        <div class="td-content fl">
	                        <c:forEach var="logo"   items="${logoList}">
							<a class="imgblock" >
	                       		<img height="108px" width="108px" src="${logo}" />
							</a>
	                     	</c:forEach>
                        </div>
                    </td>
                	</tr>
                	<tr>
                	<td class="td-left td-img">
                        <div class="td-title fl">交通图片：</div>
                        <div class="td-content fl">
	                        <c:forEach var="traffiDiagra"   items="${traffiDiagraList}">
							<a class="imgblock" >
	                       		<img height="108px" width="108px" src="${traffiDiagra}" />
							</a>
	                     	</c:forEach>
                        </div>
                    </td>
                	</tr>
                	<tr>
                		<td class="td-left td-img">
                        <div class="td-title fl">周边图片：</div>
                        <div class="td-content fl">
	                       <c:forEach var="aroundSupporDiagra"   items="${aroundSupporDiagraList}">
							<a class="imgblock" >
                        		<img height="108px" width="108px" src="${aroundSupporDiagra}" />
							</a>
               			</c:forEach>
                        </div>
                    </td>
                	</tr>
                	
                	<tr>
                		<td class="td-left td-img">
                        <div class="td-title fl">总平图片：</div>
                        <div class="td-content fl">
	                     <c:forEach var="masterDiagra"   items="${masterDiagraList}">
							<a class="imgblock" >
                          		<img height="108px" width="108px" src="${masterDiagra}" />
							</a>
                   		</c:forEach>
                        </div>
                    </td>
                	</tr>
                	
                	
                	<tr>
                		<td class="td-left td-img">
                        <div class="td-title fl">效果图片：</div>
                        <div class="td-content fl">
	                     <c:forEach var="impreDrawing"   items="${impreDrawingList}">
							<a class="imgblock" >
                         		<img height="108px" width="108px" src="${impreDrawing}" />
							</a>
                     	</c:forEach>
                        </div>
                    </td>
                	</tr>
                	
                	<tr>
                		<td class="td-left td-img">
                        <div class="td-title fl">样板图片：</div>
                        <div class="td-content fl">
	                    <c:forEach var="templateDrawing"   items="${templateDrawingList}">
							<a class="imgblock" >
                            	<img height="108px" width="108px" src="${templateDrawing}" />
							</a>
    					</c:forEach>
                        </div>
                    </td>
                	</tr>
                	
                	<tr>
                		<td class="td-left td-img">
                        <div class="td-title fl">实景图片：</div>
                        <div class="td-content fl">
	                   <c:forEach var="realDiagra"   items="${realDiagraList}">
							<a class="imgblock" >
                            	<img height="108px" width="108px" src="${realDiagra}" />
							</a>
                      	</c:forEach>
                        </div>
                    </td>
                	</tr>
                	
            	</table>
        </div>
   </div>